package com.example.demo.Controler;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 连接http
 */
@Controller//在Spring启动时加载并注册
@ResponseBody//当前类访问的是静态页面
@RequestMapping("/web")//访问当前类
public class StudentControler {
    @RequestMapping("/hi")
    public String sayHi(){
        return "Hi springMVC";
    }
}
